<script>
//import {ref,computed} from 'vue'


// const currentPath=ref(window.location.hash)

// window.addEventListener('hashchange', () => {
//   currentPath.value = window.location.hash
// })

// const currentView = computed(() => {
//   return routes[currentPath.value.slice(1) || '/']
// })

import HelloWorld from '@/components/HelloWorld.vue'
import {Icon} from '@iconify/vue'

export default{
  name:'student_Home',
  components:{
    HelloWorld,
    Icon
  }
}

</script>

<template>
  <div class="container_home">
  <header_home class="header_home">
    <a href="/student_Home" class="logo"><Icon icon="ep:help-filled" color="#bac34e" />浩奇</a>
    <nav class="navbar">
    <a href="/student_Home"><Icon icon="ep:home-filled" />主页</a>
    <a href="/notification"><Icon icon="ep:calendar" />课程通知</a>
    <a href="/questionary"><Icon icon="ep:edit" />调查问卷</a>
    </nav>
</header_home>
</div>
  <router-view></router-view>

</template>

<style lang="css" scoped>
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
  /* background: linear-gradient(45deg, #00bcd4, #ffeb3d); */
}
body_home{
  margin: 0;
  padding: 0;
  border: 0;
  /* overflow: hidden; */
  /* width: 100vw; */
}

#app{
  font-family: Avenir,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-align: center;
  margin-top: 0px;
  /* width: 100vw; */
  /* overflow-x: hidden; */
}

.container_home{
  width: 85vw;
  height: 80px;
  /* overflow-x: hidden; */
}

.header_home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
          box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.5rem 5%;
  max-height: 80px;
  max-width: 100vw;

  overflow: hidden;
}

.header_home .logo {
  font-size: 1.5rem;
  font-weight: bolder;
  color: #222;
  background-color: transparent;
}

.header_home .logo Icon {
  color: #666;
  padding-right: .5rem;
}

.header_home Icon{
  position: relative;
  top: 300px;
}

.header_home Icon:hover {
  color: #bac34e;
}

.header_home .navbar a {
  font-size: 1.2rem;
  color: #666;
  margin-left:1rem;
}

.header_home .navbar Icon{
  position: fixed;
  top:200px;
}

.header_home .navbar a:hover {
  color: #bac34e;
  background-color: transparent;
  transform: translateY(10px);
  transition: 0.2s;
}
/* header_home {
  line-height: 1.5;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
} */

/* @media (min-width: 1024px) {
  header_home {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header_home .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }
} */
</style>
